#ifndef __INDEX_RECREATE_H__
#define __INDEX_RECREATE_H__
#pragma once

struct STCreateTaskRequest
{
	std::string appname;
	std::string action;
	std::string operate;
	std::string table_name;
};

struct STCreateTaskResponse
{

};

class DLL_OPENSEARCH_API CIndexRecreate
{
public:
	static CIndexRecreate* getInstance();

	bool Initialize(std::string host);
	bool Destory();

	STCreateTaskResponse* createTask(STCreateTaskRequest *pRequest);
	bool createTaskResponse();

	STCreateTaskResponse m_createTaskResponse;
	std::string m_strUrl;
	std::map<std::string, std::string> m_mapRequestParameter;
	std::vector<std::string> m_vecRequestParameter;
private:
	CIndexRecreate();
	~CIndexRecreate();
};


#endif